/**
 * Created by 000188 on 2016/6/27.
 */
import React from 'react';
import ReactDom from 'react-dom';

var Act = React.createClass({
    render(){
        return <ul className="act-list">
            {this.props.list.map((t,i)=> {
                return <li key={i}>
                    <a href={t.href}>
                        <img onError={this.loadError} src={t.imgUrl} width="100%"/>
                    </a>
                </li>
            })}
        </ul>
    },
    loadError(e){
        e.target.style.display = 'none';
    }
});

module.exports = Act;